﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="interactive_user.aspx.cs" Inherits="Maticsoft.Web.interactive_user" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="Controls/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="Controls/navigation.ascx" TagName="navigation" TagPrefix="uc3" %>
<%@ Register Src="Controls/copyright.ascx" TagName="copyright" TagPrefix="uc2" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>	
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="css/main.css" rel="stylesheet" type="text/css" />
    <link type="text/css" href="css/blitzer/jquery-ui-1.7.2.custom.css" rel="stylesheet" />	
    <script src="js/showflash.js" type="text/javascript"></script>	
	<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
	<title>互动新闻列表页</title>
</head>
<body>
    <div id="content-child">
        <uc1:header ID="Header1" runat="server" />
	<div style="clear: both;"></div>
	<div class="n-left">
        <uc3:navigation ID="Navigation1" runat="server" />
    </div>
	<div class="n-right">
		<div class="right-n-title"></div>
		<div class="news-content">
		     <h2><asp:Label ID="NewTitle" runat="server" Text=""></asp:Label></h2>
		        <div id="newText" runat="server"> 
		        <asp:Label ID="NewDesc" runat="server" Text=""></asp:Label>
		        </div>
                   <!--互动列表-->
                <div id="interactiveUserDataListDiv" runat ="server">
                      <asp:DataList ID="interactiveUserDataList" runat="server" Width="100%">
                          <ItemTemplate>
                              <tr align ="left">
                                   <td height="25" align="left">
                                       <strong>
                                       <%# FormatString(Eval("updated").ToString())%>
                                       </strong>
                                       <br/>
                                       <b>
                                          <a class="0" href="/Admin/Copinions/Show.aspx?id=<%# Eval("id").ToString() %>" target="_blank"><strong><%# FormatString(Eval("subject").ToString())%></strong></a>
                                       </b>
                                       </br>
                                       <%# FormatString(Eval("content").ToString())%>
                                    </td>
                                   
                              </tr>
                              <tr align ="left">
                                <td height="10" align="left">

                                 </td>
                               <td height="" bgcolor="" align="left">
                                   <hr width="594" size="1" noshade="noshade" id="NewTitle"/> 
                               </td>
                              </tr>
                         </ItemTemplate>              
                     </asp:DataList>
                </div>
                   <!--录入互动信息-->
                <div id ="insertInteractiveDiv" runat="server">
                <form id="form1" runat="server">
                      <table cellspacing="0" cellpadding="0" width="100%" border="1">
                           <tr>
                           <td style="height: 239px">
                               <table cellspacing="0" cellpadding="0" width="100%" border="1">
	                                        <tr>
	                                        <td height="25" width="30%" align="right">
		                                      <font color="red"> *</font>  主题
	                                        ：</td>
	                                        <td height="25" width="*" align="left">
		                                        <asp:TextBox id="txtsubject" runat="server" Width="200px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtsubject"
                                                    ErrorMessage="主题必须填写"></asp:RequiredFieldValidator></td></tr>
	                                        <tr>
	                                        <td height="25" width="30%" align="right">
		                                        内容
	                                        ：</td>
	                                        <td height="25" width="*" align="left">
		                                        <asp:TextBox id="txtcontent" runat="server" Width="287px" Height="86px"></asp:TextBox>
                                                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtcontent"
                                                    ErrorMessage="内容在1-100之间，请你检查是否在此范围之内" MaximumValue="100" MinimumValue="1" SetFocusOnError="True"></asp:RangeValidator>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtcontent"
                                                    ErrorMessage="内容不可以为空，最少在1-100范围之内"></asp:RequiredFieldValidator></td></tr>
	                                        <tr>
	                                        <td height="25" width="30%" align="right">
		                                        用户
	                                        ：</td>
	                                        <td height="25" width="*" align="left">
		                                        <asp:TextBox id="txtuser" runat="server" Width="200px"></asp:TextBox>
	                                        </td></tr>
	                                        <tr>
	                                        <td width="30%" align="right" style="height: 21px">
		                                        地址
	                                        ：</td>
	                                        <td width="*" align="left" style="height: 21px">
		                                        <asp:TextBox id="txtaddress" runat="server" Width="200px"></asp:TextBox>
	                                        </td></tr>
	                                        <tr>
	                                        <td height="25" width="30%" align="right">
		                                        zip
	                                        ：</td>
	                                        <td height="25" width="*" align="left">
		                                        <asp:TextBox id="txtzip" runat="server" Width="200px"></asp:TextBox>
	                                        </td></tr>
	                                        <tr>
	                                        <td height="25" width="30%" align="right">
		                                        电话
	                                        ：</td>
	                                        <td height="25" width="*" align="left">
		                                        <asp:TextBox id="txttel" runat="server" Width="200px"></asp:TextBox>
	                                        </td></tr>
	                                        <tr>
	                                        <td height="25" width="30%" align="right">
		                                        http
	                                        ：</td>
	                                        <td height="25" width="*" align="left">
		                                        <asp:TextBox id="txthttp" runat="server" Width="200px"></asp:TextBox>
	                                        </td></tr>
	                                        <tr>
	                                        <td width="30%" align="right" style="height: 25px">
		                                        <font color="red">*</font> 邮件Email
	                                        ：</td>
	                                        <td width="*" align="left" style="height: 25px">
		                                        <asp:TextBox id="txtmail" runat="server" Width="200px"></asp:TextBox>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtmail"
                                                    ErrorMessage="请检查邮箱格式是否正确（例：yaohoo@.yaohoo.com）" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请填联系邮箱" ControlToValidate="txtmail"></asp:RequiredFieldValidator></td></tr>
                                        </table>
                                        </td>
                                     </tr>
                                     <tr>
                                         <td height="22">
                                                    <div align="center" runat="server">
                                                        <asp:Button ID="btnAdd" runat="server" Text="· 提交 ·" OnClick="btnAdd_Click"></asp:Button><font
                                                            face="宋体">&nbsp;</font>
                                                    </div>
                                          </td>
                                     </tr>
                           </table>
                    </form>
	 	        </div>
	 	          <div id="newsList" runat="server"> 
		            <asp:Repeater ID="newsListRepeater" runat="server" OnItemDataBound="NewsList_ItemDataBound">
                        <HeaderTemplate> <ul class="list"></HeaderTemplate>
                        <ItemTemplate><li><span>2008-8-6 </span><asp:HyperLink ID="newHyperLink" runat="server"><%# FormatString(Eval("Heading").ToString(),30)%></asp:HyperLink></li>
                        </ItemTemplate>
                        <FooterTemplate></ul></FooterTemplate>
                    </asp:Repeater>
                </div>
	     </div>
	<div style="clear: both;"></div>
    </div>
    <uc2:copyright ID="Copyright1" runat="server" />
    </div>
    </body>
</html>
